import { ConnectAction, ConnectActionGroup } from '@/connect/action'
import type { SendConnect } from './connect'
import type ora from 'ora'

export class SendConnectAction extends ConnectAction<SendConnect> {
  constructor(name: string, connect: SendConnect) {
    super(name, connect)
    this.spinner = connect.spinner
  }
  protected readonly spinner: ora.Ora

  get setSpinnerText() {
    return this.connect.setSpinnerText
  }
}

export class SendConnectActionGroup extends ConnectActionGroup<SendConnect, SendConnect> {
  constructor(name: string, connect: SendConnect) {
    super(name, connect)
    this.spinner = connect.spinner
  }
  protected readonly spinner: ora.Ora
}
